Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Only generate string.consts custom section if it is needed. #6893

Merged
merged 5 commits into from
Sep 5, 2024

Conversation

gkdn
Copy link
Contributor

@gkdn gkdn commented Aug 31, 2024

No description provided.

@gkdn
Copy link
Contributor Author

gkdn commented Aug 31, 2024

@tlively I think this is the behavior we want for 'string-lowering-magic-imports-assert' but there is a slight incompatible change for existing users of string lowering: if no constants are left, the section won't be there at runtime. So If the code wasn't guarding for it may fail.

I can preserve the existing behavior though I think we should still not have the section when string-lowering-magic-imports-assert option is used.

src/passes/StringLowering.cpp Outdated Show resolved Hide resolved
@gkdn gkdn requested a review from tlively September 5, 2024 00:14
test/lit/passes/string-lowering_empty.wast Outdated Show resolved Hide resolved
@tlively tlively enabled auto-merge (squash) September 5, 2024 00:40
@tlively tlively merged commit ad6a124 into WebAssembly:main Sep 5, 2024
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants